package com.sense.cloud.coreservice.sdk.auth.modules;

public enum ErrorCode {
  ERROR_NONCE(0X4001, "request same data again"),
  ERROR_ACCESSKEY(0X4002, "request app's accesskey not right"),
  ERROR_SIGN(0X4003, "request app's sign data error"),
  ERROR_ACCESS(0X4004, "request is not rightful"),
  ERROR_PERMISSIONS(0X4004, "request uri has not permission "),
  
  OK(0x0000, "success");

  private int code;
  private String desc;

  private ErrorCode(int code, String desc) {
    this.code = code;
    this.desc = desc;
  }

  public int getCode() {
    return code;
  }

  public String getDesc() {
    return desc;
  }

}
